﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Profile;
using System.Security.Principal;
using SaleOffVn.BusinessEntities;
using SaleOffVn.BusinessLogic;
using SaleOffVn.DataAccess;

namespace SaleOffVn.Web
{
    public class AdminBaseMscPage : System.Web.UI.Page
    {
        public AdminBaseMscPage() { }


        override protected void OnInit(EventArgs e)
        {
            base.OnInit(e);
            string userName = HttpContext.Current.User.Identity.Name;
            if (userName == "" || userName == null)
            {
                string flash = Request.ApplicationPath;
                if (!flash.EndsWith("/"))
                    flash += "/";
                string strURL = "http://" + Request.Url.Authority + flash + "SignIn.aspx";
                Response.Redirect(strURL);
            }

        }        

        #region Get Data

        #endregion


        
    }
}
